// Place all the behaviors and hooks related to the matching controller here.
// All this logic will automatically be available in application.js.


$(function() {		
	$('.modal-trigger').click(function(){
		$('#dict_value_dict_id').remove();
		$('#new_dict_value').append("<input type=hidden id=dict_value_dict_id name=dict_value[dict_id] value="+ $(this).attr('data-id')+">");		
	});
		
});